package com.extra_archive.project.iisu.view.detail.presentation 
{
	import iisu.util.GestureModel;

	import com.extra_archive.project.iisu.view.detail.BasicDetailComponentView;

	import flash.events.Event;

	/**
	 * @ Class Name : DOCPresentation.as
	 * @ Author : seenix
	 * @ Up Date : 2010. 5. 7.
	 */
	public class DOCPresentation extends BasicDetailComponentView
	{
		
		private var _presetationView : PresentationView;
		
		public function DOCPresentation()
		{
			super();
		}
		
		//--------------------------------------------------------------------------
		//
		//    Public Methods
		//
		//--------------------------------------------------------------------------

		override public function update(event : Event = null) : void
		{
			
		}
		
		override public function live() : void
		{
			_presetationView.live();
			//if (_presetationView) addChild(_presetationView);
		}

		override public function kill() : void
		{
			_presetationView.kill();
			//removeChild(_presetationView);
		}
		
		//--------------------------------------------------------------------------
		//
		//    Event Listeners
		//
		//--------------------------------------------------------------------------
		
		private function onGestureConnect(event : Event) : void 
		{
			
		}

		//--------------------------------------------------------------------------
		//
		//    Private Methods
		//
		//--------------------------------------------------------------------------

		override protected function createModel() : void
		{
			_model = GestureModel.getInstance();
			_model.applicationContainer = this;
			_model.addEventListener(Event.CONNECT, onGestureConnect);
		}

		override protected function createView() : void
		{
			trace("createView!!");
			_presetationView = new PresentationView(_model, detailView);
			addChild(_presetationView);
		}

	}
}
